package jonggyuni.basic;

import java.util.Scanner;

public class J06_SungJukV2b {

	public static void main(String[] args) {
		// 성적 처리 프로그램 v2
		// 반복문을 이용해서 성적 데이터 입력처리
		Scanner sc = null;
		String name;
		int kor, eng, math;
		int isLoop=1;
		final String title = "성적 처리프로그램";
		final String hdrline = "------------";
		final String guide1 = "이름은?";
		final String guide2 = "국어는?";
		final String guide3 = "영어는?";
		final String guide4 = "수학은?";
		final String guide5 = "계속 입력? (y=1/n=0)";
		
		while(isLoop!=0){
			
			sc = new Scanner(System.in);
			System.out.println(title);
			System.out.println(hdrline);
			System.out.print(guide1);
			name=sc.next();
			System.out.print(guide2);
			kor=sc.nextInt();
			System.out.print(guide3);
			eng=sc.nextInt();
			System.out.print(guide4);
			math=sc.nextInt();
			System.out.print(guide5);
			isLoop=sc.nextInt();
		}
		sc.close();
		
	}

}
